package cn.tedu.course.subject.service.impl;

import cn.tedu.course.subject.mapper.SubjectMapper;
import cn.tedu.course.subject.pojo.dot.SubjectQuery;
import cn.tedu.course.subject.pojo.vo.SubjectVo;
import cn.tedu.course.subject.service.SubjectService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Slf4j
public class SubjectServiceImpl implements SubjectService {
    @Autowired
    SubjectMapper subjectMapper;
    @Override
    public List<SubjectVo> selectSubject(SubjectQuery subjectQuery){
        log.debug("查询科目列表"+ subjectQuery);
        List<SubjectVo> list = subjectMapper.selectSubject(subjectQuery);
        return list;
    }
}
